﻿@page
@{ Layout = "_Layout"; }
@section Styles{
    <link href="/sitefiles/assets/lib/geeks/css/theme.min.css" rel="stylesheet" type="text/css" />
}
<template>
    <el-row :gutter="5">
        <el-col :span="8" class="text-center">
            <apexchart type="radialBar" :options="passChartOptions" :series="passSeries" height="310"></apexchart>
            <div class="py-1"></div>
            <apexchart type="radialBar" :options="nopassChartOptions" :series="nopassSeries" height="310"></apexchart>
        </el-col>
        <el-col :span="16">
            <el-card>
                <el-row :gutter="8">
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalScore }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">总分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ passScore }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">及格分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalUser }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">考生数量</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
                <el-row :gutter="8" class="mt-3">
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ maxScore }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">最高分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ minScore }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">最低分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ utils.formatFloat(totalUserScore,totalExamTimes) }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">平均分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
                <el-row :gutter="8" class="mt-3 d-flex align-items-top justify-content-between">
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalExamTimesDistinct }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">参考人数</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalPassDistinct }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">及格人数</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <el-progress type="circle" :percentage="utils.formatPercentFloat(totalPassDistinct,totalExamTimesDistinct)" :stroke-width="10" color="#67C23A"></el-progress>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">及格率</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
                <el-row :gutter="8" class="mt-3 d-flex align-items-top justify-content-between">
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalExamTimes }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">参考人次</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ totalPass }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">及格人次</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <el-progress type="circle" :percentage="utils.formatPercentFloat(totalPass,totalExamTimes)" :stroke-width="10" color="#67C23A"></el-progress>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">及格率</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
            </el-card>
        </el-col>
    </el-row>
</template>
@section Scripts{
    <script src="/sitefiles/assets/lib/apexcharts/apexcharts.js" type="text/javascript"></script>
    <script src="/sitefiles/assets/lib/apexcharts/vue-apexcharts.js" type="text/javascript"></script>
    <script src="/sitefiles/assets/js/admin/exam/examPaperManagerAnalysis.js" type="text/javascript"></script>
}